package net.office.bean;

import java.util.ArrayList;
import java.util.List;

public class AuthorityGroupExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthorityGroupExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuthGroupIdIsNull() {
            addCriterion("auth_group_Id is null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdIsNotNull() {
            addCriterion("auth_group_Id is not null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdEqualTo(Integer value) {
            addCriterion("auth_group_Id =", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdNotEqualTo(Integer value) {
            addCriterion("auth_group_Id <>", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdGreaterThan(Integer value) {
            addCriterion("auth_group_Id >", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("auth_group_Id >=", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdLessThan(Integer value) {
            addCriterion("auth_group_Id <", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("auth_group_Id <=", value, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdIn(List<Integer> values) {
            addCriterion("auth_group_Id in", values, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdNotIn(List<Integer> values) {
            addCriterion("auth_group_Id not in", values, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("auth_group_Id between", value1, value2, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("auth_group_Id not between", value1, value2, "authGroupId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameIsNull() {
            addCriterion("auth_group_name is null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameIsNotNull() {
            addCriterion("auth_group_name is not null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameEqualTo(String value) {
            addCriterion("auth_group_name =", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameNotEqualTo(String value) {
            addCriterion("auth_group_name <>", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameGreaterThan(String value) {
            addCriterion("auth_group_name >", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("auth_group_name >=", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameLessThan(String value) {
            addCriterion("auth_group_name <", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameLessThanOrEqualTo(String value) {
            addCriterion("auth_group_name <=", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameLike(String value) {
            addCriterion("auth_group_name like", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameNotLike(String value) {
            addCriterion("auth_group_name not like", value, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameIn(List<String> values) {
            addCriterion("auth_group_name in", values, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameNotIn(List<String> values) {
            addCriterion("auth_group_name not in", values, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameBetween(String value1, String value2) {
            addCriterion("auth_group_name between", value1, value2, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupNameNotBetween(String value1, String value2) {
            addCriterion("auth_group_name not between", value1, value2, "authGroupName");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdIsNull() {
            addCriterion("auth_group_parent_Id is null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdIsNotNull() {
            addCriterion("auth_group_parent_Id is not null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdEqualTo(Integer value) {
            addCriterion("auth_group_parent_Id =", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdNotEqualTo(Integer value) {
            addCriterion("auth_group_parent_Id <>", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdGreaterThan(Integer value) {
            addCriterion("auth_group_parent_Id >", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("auth_group_parent_Id >=", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdLessThan(Integer value) {
            addCriterion("auth_group_parent_Id <", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("auth_group_parent_Id <=", value, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdIn(List<Integer> values) {
            addCriterion("auth_group_parent_Id in", values, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdNotIn(List<Integer> values) {
            addCriterion("auth_group_parent_Id not in", values, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdBetween(Integer value1, Integer value2) {
            addCriterion("auth_group_parent_Id between", value1, value2, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("auth_group_parent_Id not between", value1, value2, "authGroupParentId");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildIsNull() {
            addCriterion("auth_group_is_child is null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildIsNotNull() {
            addCriterion("auth_group_is_child is not null");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildEqualTo(String value) {
            addCriterion("auth_group_is_child =", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildNotEqualTo(String value) {
            addCriterion("auth_group_is_child <>", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildGreaterThan(String value) {
            addCriterion("auth_group_is_child >", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildGreaterThanOrEqualTo(String value) {
            addCriterion("auth_group_is_child >=", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildLessThan(String value) {
            addCriterion("auth_group_is_child <", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildLessThanOrEqualTo(String value) {
            addCriterion("auth_group_is_child <=", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildLike(String value) {
            addCriterion("auth_group_is_child like", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildNotLike(String value) {
            addCriterion("auth_group_is_child not like", value, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildIn(List<String> values) {
            addCriterion("auth_group_is_child in", values, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildNotIn(List<String> values) {
            addCriterion("auth_group_is_child not in", values, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildBetween(String value1, String value2) {
            addCriterion("auth_group_is_child between", value1, value2, "authGroupIsChild");
            return (Criteria) this;
        }

        public Criteria andAuthGroupIsChildNotBetween(String value1, String value2) {
            addCriterion("auth_group_is_child not between", value1, value2, "authGroupIsChild");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}